package com.sky.article;

import java.util.Collections;
import java.util.List;

/*
@description:
@ClassName SensitiveWordsCheck
@author chen
@create 2024-09-11 23:21
@Version 1.0
*/
public class SensitiveWordsCheck extends AbstractCheck{
    @Override
    protected void check(ArticlePublishRequest request) {
        List<String> list = Collections.singletonList("路人");
        for (String str : list) {
            if(request.getContent().contains(str)){
                throw new RuntimeException();
            }
        }
    }
}
